<div class="row">
    <div class="col-md-12">
        {php}
        if(isset($img)){
        {/php}
        <div id="echart" style="width: 100%;height:600px;">
            {php}
            foreach($img as $k => $v){
            {/php}
            <img src="{$v}" />
            {php}
            }
            {/php}
        </div>
        {php}
        }
        {/php}
    </div>
    <div class="col-md-12">
        <div class="panel panel-info">
            <div class="panel-heading">多元智能测试得分</div>
            <div class="panel-body">
                <table class="table text-center">
                    {php}
                    $str1 = '';
                    $str2 = '';
                    $ana = [];
                    $strong = '';
                    $nomal = '';
                    $weak = '';
                    foreach($assData['cates'] as $k => $v){
                    $str1 .= '<td>'.$v['name'].'</td>';
                    $str2 .= '<td>'.$assData['answers_ana'][$v['id']].'</td>';
                    $ana[$v['id']] = [
                    'name'  => $v['name'],
                    'score' => $assData['answers_ana'][$v['id']]
                    ];
                    if($assData['answers_ana'][$v['id']] > 16){
                    $strong .= $v['name'].',';
                    }elseif($assData['answers_ana'][$v['id']] > 8 && $assData['answers_ana'][$v['id']] <=16){
                    $nomal .= $v['name'].',';
                    }else{
                    $weak .= $v['name'].',';
                    }
                    }
                    $strong = trim($strong,',');
                    $nomal = trim($nomal,',');
                    $weak = trim($weak,',');
                    {/php}
                    <tr><th>成绩</th>{$str1}</tr>
                    <tr><th>得分</th>{$str2}</tr>
                </table>
                <p class="">
                    在表格中，得分越高说明你的这项能力越优势，反之，得分越低说明你的这项能力越不足。从图中可以看出：相比而言，你的
                    {php}
                    if($strong){
                    {/php}
                    最优能力分别是：{$strong}；
                    {php}
                    }
                    if($nomal){
                    {/php}
                    中等能力分别是：{$nomal}；
                    {php}
                    }
                    if($weak){
                    {/php}
                    弱项能力分别是：{$weak}；
                    {php}
                    }
                    {/php}
                </p>
            </div>
        </div>
        {volist name='ana' id='vo'}
        <!--div class="panel panel-info">
            <div class="panel-heading">{$vo.name} 您的得分：{$vo.score}</div>
            <div class="panel-body"></div>
        </div-->
        {/volist}

    </div>
</div>